<!doctype html>
<html lang="en" style="font-size: 37.5px">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title><%- title %></title>
  </head>
  <body>
    <div id="root"></div>
    <script>
      function setRem() {
        const scale = document.documentElement.clientWidth / 10; // 按设计稿宽度（如 1920px）缩放
        document.documentElement.style.fontSize = scale + "px";
        document.body.style.fontSize = "12px";
      }

      // 初始化
      setRem();
      // 窗口变化时重置
      window.addEventListener("resize", setRem);
    </script>
    <script type="module" src="/src/main.tsx"></script>
  </body>
</html>
